package com.vhall.component.controller.account;

import com.vhall.component.entity.account.vo.OrgListVO;
import com.vhall.component.plugin.common.annotation.TokenAuth;
import com.vhall.component.service.account.OrgService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * OrgConsoleController-
 *
 * @author xing.wang
 * @date 2023/8/7
 */
@RestController
@RequestMapping("/v4/org/console")
public class OrgConsoleController {
    @Resource
    private OrgService orgService;
    /**
     * 获取用户角色权限下的所属来源列表()
     * @return
     */
    @TokenAuth
    @GetMapping("/role-org-list")
    public List<OrgListVO> getRoleOrgList(){
        return orgService.getRoleOrgList();
    }
}
